﻿// JScript File

function ShowForexRate(header,source)
{
   
	function AddCurrencyRate(Currency, Rate)
	{
	    var current='';
	    current+='<tr>\n';
	    current+='   <td class=fontNormal >&nbsp;' + Currency + '</td>\n';
	    current+='   <td class=fontNormal align=right> ' +  Rate + '&nbsp;</td>\n';
	    current+='</tr>';
	    return current;
	}
	var result = '';
	
	result += AddForexHeader2('Forex', header, 3, 'images/i_Stock.gif');
	for( var i=0;i<=12;i++)
	{
	    if (typeof (vForexs[i]) != 'undefined' && typeof (vCosts[i]) != 'undefined' && vCosts[i] != '' && vForexs[i]!='') 
	        result+=AddCurrencyRate(vForexs[i],vCosts[i]);
	}	
	result+=AddForexFooter(source);
	return result;
}

